package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class CourseStuAttendanceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CourseStuAttendanceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAttendanceidIsNull() {
            addCriterion("attendanceId is null");
            return (Criteria) this;
        }

        public Criteria andAttendanceidIsNotNull() {
            addCriterion("attendanceId is not null");
            return (Criteria) this;
        }

        public Criteria andAttendanceidEqualTo(Integer value) {
            addCriterion("attendanceId =", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidNotEqualTo(Integer value) {
            addCriterion("attendanceId <>", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidGreaterThan(Integer value) {
            addCriterion("attendanceId >", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidGreaterThanOrEqualTo(Integer value) {
            addCriterion("attendanceId >=", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidLessThan(Integer value) {
            addCriterion("attendanceId <", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidLessThanOrEqualTo(Integer value) {
            addCriterion("attendanceId <=", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidIn(List<Integer> values) {
            addCriterion("attendanceId in", values, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidNotIn(List<Integer> values) {
            addCriterion("attendanceId not in", values, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidBetween(Integer value1, Integer value2) {
            addCriterion("attendanceId between", value1, value2, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidNotBetween(Integer value1, Integer value2) {
            addCriterion("attendanceId not between", value1, value2, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andStuidIsNull() {
            addCriterion("stuId is null");
            return (Criteria) this;
        }

        public Criteria andStuidIsNotNull() {
            addCriterion("stuId is not null");
            return (Criteria) this;
        }

        public Criteria andStuidEqualTo(String value) {
            addCriterion("stuId =", value, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidNotEqualTo(String value) {
            addCriterion("stuId <>", value, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidGreaterThan(String value) {
            addCriterion("stuId >", value, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidGreaterThanOrEqualTo(String value) {
            addCriterion("stuId >=", value, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidLessThan(String value) {
            addCriterion("stuId <", value, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidLessThanOrEqualTo(String value) {
            addCriterion("stuId <=", value, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidLike(String value) {
            addCriterion("stuId like", value, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidNotLike(String value) {
            addCriterion("stuId not like", value, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidIn(List<String> values) {
            addCriterion("stuId in", values, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidNotIn(List<String> values) {
            addCriterion("stuId not in", values, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidBetween(String value1, String value2) {
            addCriterion("stuId between", value1, value2, "stuid");
            return (Criteria) this;
        }

        public Criteria andStuidNotBetween(String value1, String value2) {
            addCriterion("stuId not between", value1, value2, "stuid");
            return (Criteria) this;
        }

        public Criteria andTeacheridIsNull() {
            addCriterion("teacherId is null");
            return (Criteria) this;
        }

        public Criteria andTeacheridIsNotNull() {
            addCriterion("teacherId is not null");
            return (Criteria) this;
        }

        public Criteria andTeacheridEqualTo(String value) {
            addCriterion("teacherId =", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotEqualTo(String value) {
            addCriterion("teacherId <>", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThan(String value) {
            addCriterion("teacherId >", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThanOrEqualTo(String value) {
            addCriterion("teacherId >=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThan(String value) {
            addCriterion("teacherId <", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThanOrEqualTo(String value) {
            addCriterion("teacherId <=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLike(String value) {
            addCriterion("teacherId like", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotLike(String value) {
            addCriterion("teacherId not like", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridIn(List<String> values) {
            addCriterion("teacherId in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotIn(List<String> values) {
            addCriterion("teacherId not in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridBetween(String value1, String value2) {
            addCriterion("teacherId between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotBetween(String value1, String value2) {
            addCriterion("teacherId not between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andClassidIsNull() {
            addCriterion("classId is null");
            return (Criteria) this;
        }

        public Criteria andClassidIsNotNull() {
            addCriterion("classId is not null");
            return (Criteria) this;
        }

        public Criteria andClassidEqualTo(String value) {
            addCriterion("classId =", value, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidNotEqualTo(String value) {
            addCriterion("classId <>", value, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidGreaterThan(String value) {
            addCriterion("classId >", value, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidGreaterThanOrEqualTo(String value) {
            addCriterion("classId >=", value, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidLessThan(String value) {
            addCriterion("classId <", value, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidLessThanOrEqualTo(String value) {
            addCriterion("classId <=", value, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidLike(String value) {
            addCriterion("classId like", value, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidNotLike(String value) {
            addCriterion("classId not like", value, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidIn(List<String> values) {
            addCriterion("classId in", values, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidNotIn(List<String> values) {
            addCriterion("classId not in", values, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidBetween(String value1, String value2) {
            addCriterion("classId between", value1, value2, "classid");
            return (Criteria) this;
        }

        public Criteria andClassidNotBetween(String value1, String value2) {
            addCriterion("classId not between", value1, value2, "classid");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentIsNull() {
            addCriterion("attendanceContent is null");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentIsNotNull() {
            addCriterion("attendanceContent is not null");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentEqualTo(String value) {
            addCriterion("attendanceContent =", value, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentNotEqualTo(String value) {
            addCriterion("attendanceContent <>", value, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentGreaterThan(String value) {
            addCriterion("attendanceContent >", value, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentGreaterThanOrEqualTo(String value) {
            addCriterion("attendanceContent >=", value, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentLessThan(String value) {
            addCriterion("attendanceContent <", value, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentLessThanOrEqualTo(String value) {
            addCriterion("attendanceContent <=", value, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentLike(String value) {
            addCriterion("attendanceContent like", value, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentNotLike(String value) {
            addCriterion("attendanceContent not like", value, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentIn(List<String> values) {
            addCriterion("attendanceContent in", values, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentNotIn(List<String> values) {
            addCriterion("attendanceContent not in", values, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentBetween(String value1, String value2) {
            addCriterion("attendanceContent between", value1, value2, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andAttendancecontentNotBetween(String value1, String value2) {
            addCriterion("attendanceContent not between", value1, value2, "attendancecontent");
            return (Criteria) this;
        }

        public Criteria andCourseidIsNull() {
            addCriterion("courseId is null");
            return (Criteria) this;
        }

        public Criteria andCourseidIsNotNull() {
            addCriterion("courseId is not null");
            return (Criteria) this;
        }

        public Criteria andCourseidEqualTo(Integer value) {
            addCriterion("courseId =", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotEqualTo(Integer value) {
            addCriterion("courseId <>", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidGreaterThan(Integer value) {
            addCriterion("courseId >", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidGreaterThanOrEqualTo(Integer value) {
            addCriterion("courseId >=", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidLessThan(Integer value) {
            addCriterion("courseId <", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidLessThanOrEqualTo(Integer value) {
            addCriterion("courseId <=", value, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidIn(List<Integer> values) {
            addCriterion("courseId in", values, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotIn(List<Integer> values) {
            addCriterion("courseId not in", values, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidBetween(Integer value1, Integer value2) {
            addCriterion("courseId between", value1, value2, "courseid");
            return (Criteria) this;
        }

        public Criteria andCourseidNotBetween(Integer value1, Integer value2) {
            addCriterion("courseId not between", value1, value2, "courseid");
            return (Criteria) this;
        }

        public Criteria andCoursezidIsNull() {
            addCriterion("courseZid is null");
            return (Criteria) this;
        }

        public Criteria andCoursezidIsNotNull() {
            addCriterion("courseZid is not null");
            return (Criteria) this;
        }

        public Criteria andCoursezidEqualTo(String value) {
            addCriterion("courseZid =", value, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidNotEqualTo(String value) {
            addCriterion("courseZid <>", value, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidGreaterThan(String value) {
            addCriterion("courseZid >", value, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidGreaterThanOrEqualTo(String value) {
            addCriterion("courseZid >=", value, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidLessThan(String value) {
            addCriterion("courseZid <", value, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidLessThanOrEqualTo(String value) {
            addCriterion("courseZid <=", value, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidLike(String value) {
            addCriterion("courseZid like", value, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidNotLike(String value) {
            addCriterion("courseZid not like", value, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidIn(List<String> values) {
            addCriterion("courseZid in", values, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidNotIn(List<String> values) {
            addCriterion("courseZid not in", values, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidBetween(String value1, String value2) {
            addCriterion("courseZid between", value1, value2, "coursezid");
            return (Criteria) this;
        }

        public Criteria andCoursezidNotBetween(String value1, String value2) {
            addCriterion("courseZid not between", value1, value2, "coursezid");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeIsNull() {
            addCriterion("attendanceTime is null");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeIsNotNull() {
            addCriterion("attendanceTime is not null");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeEqualTo(String value) {
            addCriterion("attendanceTime =", value, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeNotEqualTo(String value) {
            addCriterion("attendanceTime <>", value, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeGreaterThan(String value) {
            addCriterion("attendanceTime >", value, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeGreaterThanOrEqualTo(String value) {
            addCriterion("attendanceTime >=", value, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeLessThan(String value) {
            addCriterion("attendanceTime <", value, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeLessThanOrEqualTo(String value) {
            addCriterion("attendanceTime <=", value, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeLike(String value) {
            addCriterion("attendanceTime like", value, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeNotLike(String value) {
            addCriterion("attendanceTime not like", value, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeIn(List<String> values) {
            addCriterion("attendanceTime in", values, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeNotIn(List<String> values) {
            addCriterion("attendanceTime not in", values, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeBetween(String value1, String value2) {
            addCriterion("attendanceTime between", value1, value2, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andAttendancetimeNotBetween(String value1, String value2) {
            addCriterion("attendanceTime not between", value1, value2, "attendancetime");
            return (Criteria) this;
        }

        public Criteria andStudentmajorIsNull() {
            addCriterion("studentMajor is null");
            return (Criteria) this;
        }

        public Criteria andStudentmajorIsNotNull() {
            addCriterion("studentMajor is not null");
            return (Criteria) this;
        }

        public Criteria andStudentmajorEqualTo(String value) {
            addCriterion("studentMajor =", value, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorNotEqualTo(String value) {
            addCriterion("studentMajor <>", value, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorGreaterThan(String value) {
            addCriterion("studentMajor >", value, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorGreaterThanOrEqualTo(String value) {
            addCriterion("studentMajor >=", value, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorLessThan(String value) {
            addCriterion("studentMajor <", value, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorLessThanOrEqualTo(String value) {
            addCriterion("studentMajor <=", value, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorLike(String value) {
            addCriterion("studentMajor like", value, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorNotLike(String value) {
            addCriterion("studentMajor not like", value, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorIn(List<String> values) {
            addCriterion("studentMajor in", values, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorNotIn(List<String> values) {
            addCriterion("studentMajor not in", values, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorBetween(String value1, String value2) {
            addCriterion("studentMajor between", value1, value2, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentmajorNotBetween(String value1, String value2) {
            addCriterion("studentMajor not between", value1, value2, "studentmajor");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeIsNull() {
            addCriterion("studentCollege is null");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeIsNotNull() {
            addCriterion("studentCollege is not null");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeEqualTo(String value) {
            addCriterion("studentCollege =", value, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeNotEqualTo(String value) {
            addCriterion("studentCollege <>", value, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeGreaterThan(String value) {
            addCriterion("studentCollege >", value, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeGreaterThanOrEqualTo(String value) {
            addCriterion("studentCollege >=", value, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeLessThan(String value) {
            addCriterion("studentCollege <", value, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeLessThanOrEqualTo(String value) {
            addCriterion("studentCollege <=", value, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeLike(String value) {
            addCriterion("studentCollege like", value, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeNotLike(String value) {
            addCriterion("studentCollege not like", value, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeIn(List<String> values) {
            addCriterion("studentCollege in", values, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeNotIn(List<String> values) {
            addCriterion("studentCollege not in", values, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeBetween(String value1, String value2) {
            addCriterion("studentCollege between", value1, value2, "studentcollege");
            return (Criteria) this;
        }

        public Criteria andStudentcollegeNotBetween(String value1, String value2) {
            addCriterion("studentCollege not between", value1, value2, "studentcollege");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}